﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="BrainTechLLC.Silverlight.ClientApplication.App"
             xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" xmlns:System="clr-namespace:System;assembly=mscorlib"
             xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"              
             xmlns:ftb="clr-namespace:BrainTechLLC.Silverlight.InputControls;assembly=BrainTechLLC.Silverlight.InputControls"
             xmlns:System_Windows_Controls_Primitives="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
             xmlns:local="clr-namespace:BrainTechLLC.Silverlight.Controls;assembly=BrainTechLLC.Silverlight.Controls"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
             xmlns:local2="clr-namespace:BrainTechLLC.Silverlight.InputControls2;assembly=BrainTechLLC.Silverlight.InputControls2"
             xmlns:controls="clr-namespace:Microsoft.Windows.Controls;assembly=Microsoft.Windows.Controls.Toolkit"
             xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
             >
    <Application.Resources>
        <Style x:Key="ButtonStyle2" TargetType="Button">
            <Setter Property="Background" Value="{x:Null}"/>
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="Padding" Value="2"/>
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="BorderBrush" Value="#FF000000" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid ShowGridLines="False">
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualState x:Name="Normal"/>
                                    <vsm:VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualState x:Name="Focused">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Unfocused"/>
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>
                            <Border x:Name="Background" Background="{x:Null}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="0,0,0,0" Margin="0,0,0,0">
                                <Grid Margin="0,0,0,0" Background="{TemplateBinding Background}">
                                    <Border x:Name="BackgroundAnimation" Opacity="0" Background="#FFEEFFEE" Padding="0,0,0,0" Margin="0,0,0,0"/>
                                    <Rectangle x:Name="BackgroundGradient" Fill="{x:Null}" StrokeThickness="0"/>
                                </Grid>
                            </Border>
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                                              x:Name="contentPresenter" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" 
                                              Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" 
                                              Margin="{TemplateBinding Padding}"/>
                            <Rectangle x:Name="DisabledVisualElement" IsHitTestVisible="false" Opacity="0" RadiusX="0" RadiusY="0" Fill="{x:Null}" StrokeThickness="0"/>
                            <Rectangle Margin="0,0,0,0" x:Name="FocusVisualElement" IsHitTestVisible="false" Opacity="0" RadiusX="0" RadiusY="0" StrokeThickness="0"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <ControlTemplate x:Key="WinContainer" TargetType="local:WindowContainer">
            <Grid Height="{TemplateBinding Width}" HorizontalAlignment="Stretch" 
                  VerticalAlignment="Stretch" Margin="0,0,0,0" x:Name="mainBorder"
                  Width="{TemplateBinding Height}">

                <Rectangle Cursor="SizeWE" x:Name="LeftSide" HorizontalAlignment="Left" VerticalAlignment="Stretch"
                           Width="3.03" Fill="#FF556BA5" Stroke="#FF000000" StrokeThickness="0" Height="Auto" Margin="0,2.325,0,0" />
                <Rectangle x:Name="RightSide" HorizontalAlignment="Right" VerticalAlignment="Stretch" 
                           Width="3.03" Fill="#FF556797" Stroke="#FF000000" Cursor="SizeWE" StrokeThickness="0" Height="Auto" Margin="0,2.325,0,0" />
                <Rectangle Cursor="SizeNS" VerticalAlignment="Bottom" HorizontalAlignment="Stretch"
                           Height="2.977" x:Name="BottomSide" Fill="#FF6576A5" 
                           Stroke="#FF000000" StrokeThickness="0" Width="Auto" />
                <Rectangle Height="2.977" x:Name="TopSide" VerticalAlignment="Top" 
                           Fill="#FF475A8D" Stroke="#FFFF0000" Cursor="SizeNS" StrokeThickness="0" Width="Auto" HorizontalAlignment="Stretch" />

                <Grid x:Name="mainLayoutGrid" HorizontalAlignment="Stretch" 
                  VerticalAlignment="Stretch" Margin="3,3,3,3"
                  Background="{TemplateBinding HeaderBackground}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="18"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>

                    <Rectangle Grid.Column="0" Grid.ColumnSpan="3"
                               Height="20" x:Name="DragBar" Fill="{TemplateBinding HeaderBackground}" Stroke="#FF000000" 
                               StrokeThickness="0" Width="Auto" HorizontalAlignment="Stretch" Cursor="Hand" />

                    <Rectangle Fill="{TemplateBinding ContentBackground}" Stretch="Fill" Grid.RowSpan="2" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto" x:Name="indentFill"/>

                    <TextBlock x:Name="DescriptionText" Text="None" HorizontalAlignment="Left" Grid.Column="1" VerticalAlignment="Center" Foreground="#FFEAFF00" Padding="0,0,0,0" Margin="4,1,0,0"
                                       FontSize="11" FontFamily="Verdana" FontWeight="Normal" />

                    <TextBlock Text="" x:Name="NameSummary" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1" Margin="0,0,0,0" FontSize="9" Foreground="#FFF5FF00" Width="Auto" />

                    <Border x:Name="ShowCollapsed" BorderThickness="0,0,0,0" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" BorderBrush="{TemplateBinding WindowBorder}"
                                    HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0"
                                    Background="{TemplateBinding ContentBackground}" Visibility="Visible" Padding="0,0,0,0">

                        <ContentPresenter Content="{TemplateBinding Content}" x:Name="PART_Content" Margin="0,0,0,0"
                                                      ContentTemplate="{TemplateBinding ContentTemplate}"
                                                      HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
                    </Border>

                    <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Width="Auto" Height="Auto" VerticalAlignment="Center" 
                                    Grid.Column="2" Name="stacker">
                        <Button HorizontalAlignment="Right" VerticalAlignment="Center" x:Name="EditButton" Width="Auto" Height="Auto"
                                Padding="1,2,0,2"                                 
                                Margin="0,0,0,0" 
                                Style="{StaticResource ButtonStyle2}" 
                                HorizontalContentAlignment="Right" VerticalContentAlignment="Center" BorderBrush="{TemplateBinding WindowBorder}">
                            <Image x:Name="imgEdit" Margin="0,0,0,0" Stretch="Uniform" Width="16" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                   />
                        </Button>
                        <Button HorizontalAlignment="Right" VerticalAlignment="Center" x:Name="SaveButton" Width="Auto" Height="Auto"
                                Padding="1,2,0,2"                                 
                                Margin="0,0,0,0" 
                                Style="{StaticResource ButtonStyle2}" 
                                HorizontalContentAlignment="Right" VerticalContentAlignment="Center" BorderBrush="{TemplateBinding WindowBorder}">
                            <Image x:Name="imgSave" Margin="0,0,0,0" Stretch="Uniform" Width="16" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"                                   
                                   />
                        </Button>
                        <Button HorizontalAlignment="Right" VerticalAlignment="Center" x:Name="CloseButton2" Width="Auto" Height="Auto"
                                Padding="1,2,0,2"                                
                                Margin="0,0,0,0"                                 
                                Style="{StaticResource ButtonStyle2}" 
                                HorizontalContentAlignment="Right" VerticalContentAlignment="Center" BorderBrush="{TemplateBinding WindowBorder}">
                            <Image x:Name="imgClose" Margin="0,0,0,0"                                    
                                   Stretch="Uniform" Width="16" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                        </Button>
                        <Button HorizontalAlignment="Right" VerticalAlignment="Center" x:Name="ExpandButton" Width="Auto" Height="Auto" 
                                Padding="1,2,0,2"                                 
                                Margin="0,0,0,0"                                 
                                Style="{StaticResource ButtonStyle2}" BorderBrush="{TemplateBinding WindowBorder}" 
                                HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Canvas.ZIndex="0" Background="{x:Null}" OpacityMask="{x:Null}">
                            <Image x:Name="imgExpand" Margin="0,0,0,0" Stretch="Uniform" Width="16" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" OpacityMask="{x:Null}"                                   
                                   />
                        </Button>
                    </StackPanel>
                </Grid>
            </Grid>
        </ControlTemplate>
        <Style x:Key="TextBoxNoScroller" TargetType="TextBox">
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Background" Value="#FFFFFFFF"/>
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="Padding" Value="2,0,2,0"/>
            <Setter Property="FontSize" Value="10"/>
            <Setter Property="HorizontalAlignment" Value="Stretch"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="BorderBrush">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                        <GradientStop Color="#FF718597" Offset="0.375"/>
                        <GradientStop Color="#FF617584" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="TextBox">
                        <Grid x:Name="RootElement">
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualState x:Name="Normal"/>
                                    <vsm:VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ColorAnimationUsingKeyFrames Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
                                                <SplineColorKeyFrame KeyTime="0" Value="#FF99C1E2"/>
                                            </ColorAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="ReadOnly">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ReadOnlyVisualElement" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualState x:Name="Focused">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Unfocused">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>
                            <Border x:Name="Border" Opacity="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="0">
                                <Grid>
                                    <Border x:Name="ReadOnlyVisualElement" Opacity="0" Background="#72F7F7F7"/>
                                    <Border x:Name="MouseOverBorder" BorderBrush="Transparent" BorderThickness="1">
                                        <Border x:Name="ContentElement" BorderThickness="0" Padding="{TemplateBinding Padding}"/>
                                    </Border>
                                </Grid>
                            </Border>
                            <Border x:Name="DisabledVisualElement" IsHitTestVisible="False" Opacity="0" Background="#A5F7F7F7" BorderBrush="#A5F7F7F7" BorderThickness="{TemplateBinding BorderThickness}"/>
                            <Border Margin="1" x:Name="FocusVisualElement" IsHitTestVisible="False" Opacity="0" BorderBrush="#FF6DBDD1" BorderThickness="{TemplateBinding BorderThickness}"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="TextBlockContentStyle" TargetType="ContentControl">
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ContentControl">
                        <TextBlock Text="{TemplateBinding Content}" TextWrapping="NoWrap" 
                                   HorizontalAlignment="{TemplateBinding HorizontalAlignment}" 
                                   VerticalAlignment="{TemplateBinding VerticalAlignment}" 
                                   Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" 
                                   Visibility="{TemplateBinding Visibility}" Foreground="{TemplateBinding Foreground}"                                    
                                   FontFamily="Verdana" FontSize="10" Margin="{TemplateBinding Margin}" Padding="{TemplateBinding Padding}"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ScrollViewerStyle1" TargetType="ScrollViewer">
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="VerticalScrollBarVisibility" Value="Visible"/>
            <Setter Property="Padding" Value="4"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="BorderBrush">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                        <GradientStop Color="#FF718597" Offset="0.375"/>
                        <GradientStop Color="#FF617584" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ScrollViewer">
                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="0,0,0,0">
                            <Grid Background="{TemplateBinding Background}">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <ScrollContentPresenter Cursor="{TemplateBinding Cursor}" x:Name="ScrollContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Margin="2,2,2,2"/>
                                <Rectangle Grid.Column="1" Grid.Row="1" Fill="#FFE9EEF4"/>
                                <ScrollBar Margin="0,-1,-1,-1" x:Name="VerticalScrollBar" Width="18" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" IsTabStop="False" Grid.Column="1" Grid.Row="0" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{TemplateBinding VerticalOffset}" Orientation="Vertical" ViewportSize="{TemplateBinding ViewportHeight}"/>
                                <ScrollBar Height="18" Margin="-1,0,-1,-1" x:Name="HorizontalScrollBar" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" IsTabStop="False" Grid.Column="0" Grid.Row="1" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{TemplateBinding HorizontalOffset}" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}"/>
                            </Grid>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ListBoxStyle1" TargetType="ListBox">
            <Setter Property="Padding" Value="1,0,1,0"/>
            <!--was 1-->
            <Setter Property="Background" Value="#FFFFFFFF"/>
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="IsTabStop" Value="False"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="TabNavigation" Value="Once"/>
            <Setter Property="BorderBrush">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                        <GradientStop Color="#FF718597" Offset="0.375"/>
                        <GradientStop Color="#FF617584" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListBox">
                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="0" Padding="0" Margin="0">
                            <ScrollViewer x:Name="ScrollViewer" Background="{TemplateBinding Background}" BorderBrush="Transparent" BorderThickness="0" Padding="{TemplateBinding Padding}" Style="{StaticResource ScrollViewerStyle1}">
                                <ItemsPresenter Margin="0" />
                            </ScrollViewer>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="ListBoxItemStyle1" TargetType="ListBoxItem">
            <Setter Property="Padding" Value="0,0,0,0"/>
            <!--was 1-->
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="BorderThickness" Value="0,0,0,0"/>
            <!--was 1-->
            <Setter Property="TabNavigation" Value="Local"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListBoxItem">
                        <Grid Background="{TemplateBinding Background}" ShowGridLines="False">
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualState x:Name="Normal"/>
                                    <vsm:VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="fillColor" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value=".35"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="SelectionStates">
                                    <vsm:VisualState x:Name="Unselected"/>
                                    <vsm:VisualState x:Name="Selected">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="fillColor2" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value=".75"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualState x:Name="Focused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Visibility">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Unfocused"/>
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>
                            <Rectangle x:Name="fillColor" IsHitTestVisible="False" Opacity="0" RadiusX="1" RadiusY="1" Fill="#FFBADDE9"/>
                            <Rectangle x:Name="fillColor2" IsHitTestVisible="False" Opacity="0" RadiusX="1" RadiusY="1" Fill="#FFBADDE9"/>
                            <ContentPresenter HorizontalAlignment="Stretch" x:Name="contentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                            <Rectangle x:Name="FocusVisualElement" Visibility="Collapsed" RadiusX="0" RadiusY="0" Stroke="#FF6DBDD1" StrokeThickness="0"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style TargetType="local2:InputTextBox" x:Key="InputTBStyle2">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="local2:InputTextBox">
                        <StackPanel Height="Auto" Width="Auto" Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Top" x:Name="stackTop">
                            <Grid Height="Auto" Width="Auto" x:Name="gridMain">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="160" />
                                </Grid.ColumnDefinitions>
                                <StackPanel Width="Auto" Orientation="Horizontal" x:Name="stack">
                                    <Image Width="16" x:Name="imgInfo" Cursor="hand" />
                                    <TextBlock Height="Auto" x:Name="lblPrompt" Width="Auto" Text="Some prompt goes here" TextWrapping="NoWrap" HorizontalAlignment="Stretch" 
            			            VerticalAlignment="Center" Margin="16,0,12,0" Padding="0,0,0,0" Foreground="#FF4A4A4A" FontFamily="Verdana" FontSize="11" />
                                    <ContentControl Content="MMDDYYYY" x:Name="txtDateHint" Visibility="Collapsed" />
                                </StackPanel>
                                <ftb:FilteredTextBox Style="{StaticResource TextBoxNoScroller}" x:Name="txtInput" Width="160" Height="Auto" Grid.Column="1" />
                            </Grid>
                            <StackPanel x:Name="Notes" Width="Auto" Orientation="Vertical" Height="0" HorizontalAlignment="Stretch"/>
                            <StackPanel Height="0" Width="Auto" HorizontalAlignment="Stretch" Orientation="Vertical" x:Name="stackValidationReference" VerticalAlignment="Top" />
                            <Rectangle x:Name="bottomLine" Fill="DarkGray" Height="1" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Top" Stroke="DarkGray" />
                        </StackPanel>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Color x:Key="BorderColor">#FF4241E2</Color>
        <LinearGradientBrush x:Key="BorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF1BEB06" Offset="0.114"/>
            <GradientStop Color="#FFFA002A" Offset="1"/>
            <GradientStop Color="#FF048CF3" Offset="0.51099997758865356"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="BackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFF4F2F2"/>
            <GradientStop Color="#FF8C8C8C" Offset="1"/>
        </LinearGradientBrush>
        <Style x:Key="BasicContentStyle" TargetType="ContentControl">
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ContentControl">
                        <Border Background="{StaticResource BackgroundBrush}" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="{StaticResource BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" 
                                Padding="0,0,0,0" >
                            <ContentPresenter Cursor="{TemplateBinding Cursor}" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ContentTemplate="{TemplateBinding ContentTemplate}" />
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <System:Double x:Key="StandardTextSize">18</System:Double>
    </Application.Resources>
</Application>
